#/bin/bash
#pm_path=$tools_path/pm,$tools_path/perl_module
#unset $PERL5LIB
for pmp in $tools_path/pm $tools_path/perl_module /mnt/ilustre/app/medical/tools/perl-5.14.4/lib /mnt/ilustre/app/medical/tools/perl-5.14.4/lib/5.14.4 /mnt/ilustre/app/medical/tools/perl-5.14.4/lib/site_perl; do
echo $pmp
for dir in $(ls -p $pmp|grep /);do PERL5LIB=${pmp}/${dir}:${pmp}/${dir}lib:$PERL5LIB; done
done
export PERL5LIB
export PERL5LIB=/mnt/ilustre/app/pub/perl/5.10.1/lib/5.10.1/x86_64-linux-thread-multi:/mnt/ilustre/app/pub/perl/5.10.1/lib/site_perl/5.10.1/:/mnt/ilustre/app/pub/perl/5.10.1/lib/5.10.1:$PERL5LIB
echo $PERL5LIB
